package com.octopus.optiworks.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.octopus.optiworks.model.EmployeeRole;

@Component
public class RoleDao extends GenericHibernateDao<EmployeeRole, Long>{
	
	public List<EmployeeRole> loadAll(){
		List<EmployeeRole> list = super.find("from EmployeeRole r order by r.name", new String[]{});
		return list;
	}

}
